package com.ruoyi.scrap.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_scrap_apply_audit")
public class ScrapApplyAudit {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 申请id */
    @Excel(name = "申请id")
    private String applyId;
    /** 审核人id */
    @Excel(name = "审核人id")
    private Long auditor;
    /** 审核人姓名 */
    @Excel(name = "审核人姓名")
    private String auditBy;
    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;
    /** 审核状态（0：通过1：驳回） */
    @Excel(name = "审核状态", readConverterExp = "0=：通过1：驳回")
    private String auditStatus;
    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditIdea;
    /** 审核人签字 */
    @Excel(name = "审核人签字")
    private String auditSign;
    /** 审核人部门id */
    @Excel(name = "审核人部门id")
    private Long auditDept;
    /** 审核人部门 */
    @Excel(name = "审核人部门")
    private String auditDeptName;
    /** 审核人岗位id */
    @Excel(name = "审核人岗位id")
    private Long auditPost;
    /** 审核人岗位 */
    @Excel(name = "审核人岗位")
    private String auditPostName;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("applyId", getApplyId())
                .append("auditor", getAuditor())
                .append("auditBy", getAuditBy())
                .append("auditTime", getAuditTime())
                .append("auditStatus", getAuditStatus())
                .append("auditIdea", getAuditIdea())
                .append("auditSign", getAuditSign())
                .append("auditDept", getAuditDept())
                .append("auditDeptName", getAuditDeptName())
                .append("auditPost", getAuditPost())
                .append("auditPostName", getAuditPostName())
                .toString();
    }
}
